import Router from 'koa-router'
import {userRouter} from './component/user.js';

const router = new Router(); // 创建路由，支持传递参数
router.get('/', async (ctx) => {
  ctx.type = 'html';
  ctx.body = '<h1>hello world!</h1>';
})


userRouter(router); // 调用user路由

export default router;